<template>
  <div id="ShopInfo">
    <div class="shopBox">
      <mt-swipe :auto="4000" class="swipe">
        <mt-swipe-item
          v-for="(item,index) in storeDoorHearImg"
          :key="index"
          :style="{'background-image':'url('+item.storeImgUrl+')'}"
          class="swipeItem"
        ></mt-swipe-item>
      </mt-swipe>
      <div class="info">
        <img :src="storeHeadImg" alt class="headerImg">
        <div class="shop">
          <p class="shopName">{{title}}</p>
          <span class="shopType">{{storeLevel}}</span>
          <p class="brand">
            <img src="../../../static/m_img/x_d1.png" alt>主营品牌：
            <template v-for="item in mainBrandVos">{{item.brandName}}/</template>
          </p>
          <p class="address">
            <img src="../../../static/m_img/x_d2.png" alt>
            店铺地址：{{storeAddress}}
          </p>
        </div>
      </div>
    </div>
    <div class="video" v-show='storeVideo!==null'>
      <video
        :src="storeVideo ? storeVideo.fileUrl: ''"
        :poster="storeVideo?storeVideo.thumbnailUrl:''"
        controls="controls"
      >您的浏览器不支持 video 标签。</video>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    storeDoorHearImg: Array,
    title: String,
    storeLevel: String,
    mainBrandVos: Array,
    storeAddress: String,
    storeVideo: Object,
    storeHeadImg:String
  },
  components: {},

  methods: {},
  created() {}
};
</script>
<style type="text/css" lang='scss'>
#ShopInfo {
  .shopBox {
    background: #fff;
  }
  .swipe {
    height: 210px;
    .swipeItem {
      background-size: cover;
      background-position: center;
    }
  }
  .video {
    width: 95%;
    margin: 15px auto;
    height: 200px;
    video {
      width: 100%;
      height: 200px;
    }
  }
  .dpImg {
    width: 100%;
  }
  .info {
    display: flex;
    padding: 10px 15px;
    .headerImg {
      width: 52.5px;
      height: 52.5px;
      border-radius: 50%;
      margin-right: 15px;
    }
    .shopName {
      color: #323232;
      font-size: 1.166667rem;
      font-weight: bold;
    }
    .shopType {
      color: #ff9800;
      border: 1px solid #ff9800;
      border-radius: 2px;
      line-height: 1.166667rem;
      padding: 2px 6px;
      margin-top: 8px;
    }
    .brand,
    .address {
      color: #666;
      font-size: 1.083333rem;
      display: flex;
      margin-top: 5px;
      img {
        width: 13px;
        height: 13px;
        margin-right: 10px;
        margin-top: 4px;
      }
    }
  }
}
</style>


